package com.aiit.service.impl;


import com.aiit.dao.RoleDao;
import com.aiit.pojo.Role;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Set;

@Service
@Transactional
public class RoleService {
    @Resource
    private RoleDao roleDao;

    public Set<Role> findRoleListByUserId(int userId) {
        return roleDao.findRoleListByUserId(userId);
    }
}
